package de.tum.in.eist.poll.pub.service;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import de.tum.in.eist.poll.pub.shared.Feedback;
import de.tum.in.eist.poll.pub.shared.Lecture;
import de.tum.in.eist.poll.pub.shared.User;

@RemoteServiceRelativePath("ExtPollService")
public interface ExtPollService extends RemoteService {
	public List<User> getUsers();
	public User login(String name, String password) throws IllegalArgumentException;
	public String addFeedback(Feedback feedback) throws Exception;
	public List<Feedback> getFeedback(Lecture lecture) throws Exception;
	public List<Lecture> getLectures(User user) throws Exception;
}
